Optimal. Leaf size=81 \[ -\frac{(-3)^{-m-1} 2^{m+\frac{1}{2}} \cos (e+f x) (\sin (e+f x)+1)^{-m-\frac{1}{2}} (a \sin (e+f x)+a)^m \, _2F_1\left (\frac{1}{2},\frac{1}{2}-m;\frac{3}{2};\frac{1}{2} (1-\sin (e+f x))\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0470816, antiderivative size = 81, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15, Rules used = {12, 2652, 2651} \[ -\frac{(-3)^{-m-1} 2^{m+\frac{1}{2}} \cos (e+f x) (\sin (e+f x)+1)^{-m-\frac{1}{2}} (a \sin (e+f x)+a)^m \, _2F_1\left (\frac{1}{2},\frac{1}{2}-m;\frac{3}{2};\frac{1}{2} (1-\sin (e+f x))\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2652
Rule 2651
Rubi steps
\begin{align*} \int (-3)^{-1-m} (a+a \sin (e+f x))^m \, dx &=(-3)^{-1-m} \int (a+a \sin (e+f x))^m \, dx\\ &=\left ((-3)^{-1-m} (1+\sin (e+f x))^{-m} (a+a \sin (e+f x))^m\right ) \int (1+\sin (e+f x))^m \, dx\\ &=-\frac{(-3)^{-1-m} 2^{\frac{1}{2}+m} \cos (e+f x) \, _2F_1\left (\frac{1}{2},\frac{1}{2}-m;\frac{3}{2};\frac{1}{2} (1-\sin (e+f x))\right ) (1+\sin (e+f x))^{-\frac{1}{2}-m} (a+a \sin (e+f x))^m}{f}\\ \end{align*}
Mathematica [A] time = 0.156529, size = 97, normalized size = 1.2 \[ \frac{\sqrt{2} (-3)^{-m-1} \cos (e+f x) (a (\sin (e+f x)+1))^m \, _2F_1\left (\frac{1}{2},m+\frac{1}{2};m+\frac{3}{2};\frac{1}{4} \cos ^2(e+f x) \csc ^2\left (\frac{1}{4} (2 e+2 f x-\pi )\right )\right )}{(2 f m+f) \sqrt{1-\sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.332, size = 0, normalized size = 0. \begin{align*} \int \left ( -3 \right ) ^{-1-m} \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \left (-3\right )^{-m - 1} \int{\left (a \sin \left (f x + e\right ) + a\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\left (-3\right )^{-m - 1}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \left (-3\right )^{- m - 1} \int \left (a \sin{\left (e + f x \right )} + a\right )^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (-3\right )^{-m - 1}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]